<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>母亲节快乐</title>
    <link href="https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&family=Noto+Sans+SC:wght@400;500;700&display=swap" rel="stylesheet">
    <style>
        /* CSS样式 */
        body {
            font-family: 'Noto Sans SC', 'Arial', sans-serif;
            background: linear-gradient(135deg, #fff5f7 0%, #ffe6ee 100%);
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            min-height: 100vh;
            text-align: center;
            overflow-x: hidden;
            position: relative;
        }

        .header {
            background: linear-gradient(135deg, #ff4081 0%, #c2185b 100%);
            color: white;
            width: 100%;
            padding: 25px 0;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
            position: relative;
            z-index: 10;
            border-bottom: 5px solid rgba(255, 255, 255, 0.3);
        }

        h1 {
            margin: 0;
            font-family: 'Ma Shan Zheng', cursive;
            font-size: 3.2em;
            text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
            animation: glow 2s ease-in-out infinite alternate;
            letter-spacing: 2px;
        }

        .container {
            max-width: 800px;
            padding: 35px;
            margin: 40px;
            background-color: rgba(255, 255, 255, 0.9);
            border-radius: 20px;
            box-shadow: 0 15px 35px rgba(233, 30, 99, 0.2);
            position: relative;
            z-index: 5;
            transform: translateY(0);
            transition: all 0.4s ease;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.5);
        }

        .container:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 40px rgba(233, 30, 99, 0.3);
        }

        .flower-container {
            display: flex;
            justify-content: center;
            margin: 20px 0;
        }

        .flower {
            font-size: 4em;
            margin: 0 15px;
            animation: float 3s ease-in-out infinite;
            text-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;
        }

        .flower:hover {
            transform: scale(1.2) rotate(15deg);
            cursor: pointer;
        }

        .flower:nth-child(1) {
            animation-delay: 0s;
        }

        .flower:nth-child(2) {
            animation-delay: 0.7s;
        }

        .flower:nth-child(3) {
            animation-delay: 1.4s;
        }

        .message {
            font-size: 1.3em;
            line-height: 1.8;
            margin: 35px 0;
            padding: 25px;
            border-radius: 15px;
            background-color: rgba(255, 249, 250, 0.8);
            border-left: 5px solid #e91e63;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            transition: transform 0.3s ease;
        }

        .message:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        }

        .message p {
            margin: 12px 0;
        }

        .buttons {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 20px;
            margin: 30px 0;
        }

        .button {
            background: linear-gradient(to right, #e91e63, #f06292);
            color: white;
            border: none;
            padding: 16px 32px;
            font-size: 1.2em;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 8px 20px rgba(233, 30, 99, 0.3);
            position: relative;
            overflow: hidden;
            z-index: 1;
        }

        .button:before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(to right, #c2185b, #e91e63);
            transition: all 0.4s;
            z-index: -1;
        }

        .button:hover:before {
            left: 0;
        }

        .button:hover {
            transform: scale(1.05) translateY(-5px);
            box-shadow: 0 12px 25px rgba(233, 30, 99, 0.4);
        }

        .button:active {
            transform: scale(0.98);
        }

        .footer {
            margin-top: auto;
            padding: 25px;
            color: #e91e63;
            font-weight: bold;
            font-size: 1.2em;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
            position: relative;
            z-index: 5;
        }

        /* 飘落元素的基本样式 */
        .falling-item {
            position: fixed;
            z-index: 1;
            top: -50px;
            pointer-events: none;
            user-select: none;
            filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.1));
        }

        /* 动画效果 */
        @keyframes float {
            0%, 100% {
                transform: translateY(0) rotate(0deg);
            }
            50% {
                transform: translateY(-20px) rotate(5deg);
            }
        }

        @keyframes falling {
            0% {
                transform: translateY(-50px) rotate(0deg) scale(0.8);
                opacity: 1;
            }
            50% {
                transform: translateY(50vh) rotate(180deg) scale(1);
                opacity: 0.8;
            }
            100% {
                transform: translateY(calc(100vh + 50px)) rotate(360deg) scale(0.8);
                opacity: 0;
            }
        }

        @keyframes heartBeat {
            0% {
                transform: scale(1);
            }
            14% {
                transform: scale(1.3);
            }
            28% {
                transform: scale(1);
            }
            42% {
                transform: scale(1.3);
            }
            70% {
                transform: scale(1);
            }
        }

        @keyframes glow {
            from {
                text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #e91e63, 0 0 20px #e91e63;
            }
            to {
                text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #e91e63, 0 0 40px #e91e63;
            }
        }

        /* 背景装饰 */
        .bg-decoration {
            position: fixed;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            z-index: 0;
            pointer-events: none;
            opacity: 0.4;
        }

        .bg-decoration::before,
        .bg-decoration::after {
            content: '';
            position: absolute;
            width: 300px;
            height: 300px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(233, 30, 99, 0.2) 0%, rgba(233, 30, 99, 0) 70%);
        }

        .bg-decoration::before {
            top: 10%;
            left: 10%;
            animation: float 15s ease-in-out infinite;
        }

        .bg-decoration::after {
            bottom: 10%;
            right: 10%;
            width: 400px;
            height: 400px;
            animation: float 18s ease-in-out infinite reverse;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .container {
                margin: 20px 15px;
                padding: 25px;
            }
            h1 {
                font-size: 2.5em;
            }
            .message {
                font-size: 1.1em;
                padding: 15px;
            }
            .flower {
                font-size: 3em;
                margin: 0 10px;
            }
            .button {
                padding: 12px 25px;
                font-size: 1.1em;
            }
        }
    </style>
</head>
<body>
    <div class="bg-decoration"></div>
    
    <div class="header">
        <h1>母亲节快乐！</h1>
    </div>

    <div class="container">
        <div class="flower-container">
            <div class="flower">🌹</div>
            <div class="flower">🌺</div>
            <div class="flower">🌸</div>
        </div>
        
        <div class="message">
            <p>亲爱的妈妈：</p>
            <p>感谢您无私的爱与付出，您是这个世界上最伟大的人！</p>
            <p>您的关怀如春风，您的爱如阳光，温暖着我的每一天。</p>
            <p>愿您永远健康、快乐、幸福！</p>
            <p>我爱您！❤️</p>
        </div>

        <div class="buttons">
            <button class="button" id="heartButton">点击送爱心</button>
            <button class="button" id="flowerButton">点击送花朵</button>
            <button class="button" id="wishButton">送上祝福</button>
        </div>
    </div>

    <div class="footer">
        <p>祝天下所有的母亲节日快乐！</p>
    </div>

    <script>
        // JavaScript代码
        document.addEventListener('DOMContentLoaded', function() {
            const heartButton = document.getElementById('heartButton');
            const flowerButton = document.getElementById('flowerButton');
            const wishButton = document.getElementById('wishButton');
            const container = document.querySelector('.container');
            const body = document.body;
            const flowerElements = document.querySelectorAll('.flower');
            const flowers = ['🌹', '🌸', '🌺', '🌷', '💐', '🌻', '🌼', '🏵️'];

            // 创建飘落元素的函数
            function createFallingItem(emoji, count = 15) {
                for (let i = 0; i < count; i++) {
                    setTimeout(() => {
                        const item = document.createElement('div');
                        item.classList.add('falling-item');
                        item.innerHTML = emoji;
                        item.style.left = Math.random() * 100 + 'vw';
                        item.style.fontSize = (Math.random() * 20 + 20) + 'px';
                        item.style.opacity = Math.random() * 0.5 + 0.5;
                        item.style.transform = `rotate(${Math.random() * 360}deg)`;
                        item.style.animation = `falling ${Math.random() * 5 + 5}s linear forwards`;
                        body.appendChild(item);
                        
                        // 动画结束后移除元素
                        setTimeout(() => {
                            item.remove();
                        }, 10000);
                    }, i * 300);
                }
            }

            // 点击花朵也能触发飘落效果
            flowerElements.forEach(flower => {
                flower.addEventListener('click', function() {
                    createFallingItem(this.textContent, 8);
                    this.style.animation = 'heartBeat 1s';
                    setTimeout(() => {
                        this.style.animation = 'float 3s ease-in-out infinite';
                    }, 1000);
                });
            });

            // 点击送爱心按钮
            heartButton.addEventListener('click', function() {
                createFallingItem('❤️');
                this.innerHTML = '❤️ 爱心已送出';
                setTimeout(() => {
                    this.innerHTML = '点击送爱心';
                }, 2000);
            });

            // 点击送花朵按钮
            flowerButton.addEventListener('click', function() {
                const randomFlower = flowers[Math.floor(Math.random() * flowers.length)];
                createFallingItem(randomFlower);
                this.innerHTML = `${randomFlower} 花朵已送出`;
                setTimeout(() => {
                    this.innerHTML = '点击送花朵';
                }, 2000);
            });

            // 点击送上祝福按钮
            wishButton.addEventListener('click', function() {
                const wishes = [
                    '妈妈，感谢您一直以来的关爱和付出！愿您永远健康快乐，我爱您！❤️',
                    '妈妈，您是我生命中最重要的人，祝您母亲节快乐！',
                    '妈妈，您的爱是我前进的动力，祝您幸福安康！',
                    '妈妈，感谢您的养育之恩，我会永远爱您！',
                    '妈妈，您的笑容是我最大的幸福，祝您节日快乐！'
                ];
                alert(wishes[Math.floor(Math.random() * wishes.length)]);
                createFallingItem('❤️', 5);
                createFallingItem(flowers[Math.floor(Math.random() * flowers.length)], 5);
            });

            // 页面加载时自动飘落一些爱心和花朵
            setTimeout(() => {
                createFallingItem('❤️', 5);
            }, 1000);
            
            setTimeout(() => {
                createFallingItem(flowers[Math.floor(Math.random() * flowers.length)], 5);
            }, 2000);

            // 自动更换花朵
            setInterval(() => {
                flowerElements.forEach(el => {
                    el.textContent = flowers[Math.floor(Math.random() * flowers.length)];
                });
            }, 3000);

            // 每隔一段时间自动飘落一些元素
            setInterval(() => {
                if (Math.random() > 0.5) {
                    createFallingItem('❤️', 3);
                } else {
                    createFallingItem(flowers[Math.floor(Math.random() * flowers.length)], 3);
                }
            }, 5000); // 缩短间隔时间，让飘落更频繁

            // 鼠标移动时也触发飘落效果
            let lastMoveTime = 0;
            document.addEventListener('mousemove', function(e) {
                const now = Date.now();
                if (now - lastMoveTime > 500) { // 限制触发频率
                    lastMoveTime = now;
                    if (Math.random() > 0.7) { // 30%的概率触发
                        const randomEmoji = Math.random() > 0.5 ? '❤️' : flowers[Math.floor(Math.random() * flowers.length)];
                        const item = document.createElement('div');
                        item.classList.add('falling-item');
                        item.innerHTML = randomEmoji;
                        item.style.left = e.clientX + 'px';
                        item.style.top = e.clientY + 'px';
                        item.style.fontSize = (Math.random() * 15 + 15) + 'px';
                        item.style.opacity = Math.random() * 0.5 + 0.5;
                        item.style.animation = `falling ${Math.random() * 4 + 3}s linear forwards`;
                        body.appendChild(item);
                        
                        setTimeout(() => {
                            item.remove();
                        }, 7000);
                    }
                }
            });
        });
    </script>
</body>
</html>